from time import time


def main():
    total = 0
    number_list = [x for x in range(1, 10000001)]
    staet = time()
    for number in number_list:
        total += number
    print(total)
    end = time()
    print('一共耗时%.2f秒' % (end - staet))


if __name__ == "__main__":
    main()